Check for XFIXES extension.
authorMatthias Clasen <mclasen@redhat.com>
Tue, 18 May 2004 20:56:54 +0000 (20:56 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 18 May 2004 20:56:54 +0000 (20:56 +0000)
commit7b8616bf76e42e7b71543d4da9a3ca8e02c4d0d5
tree139d727a115ba783ae0655d52f7835d731548700
parent261d5404386a176a6a209d3deee08dc9b94f2d1a
Check for XFIXES extension.

2004-05-18  Matthias Clasen  <mclasen@redhat.com>

* configure.in: Check for XFIXES extension.

* gdk/x11/gdkdisplay-x11.h (struct _GdkDisplayX11): Add
a gboolean have_xfixes member.

* gdk/x11/gdkdisplay-x11.c (gdk_display_open): Register
XFIXES events and set have_xfixes.

* gdk/gdkevents.h (GdkEventType): Add GDK_OWNER_CHANGE.
(GdkEventOwnerChange): New event struct for owner change events.
(GdkOwnerChange): New enum for the reason field of GdkEventOwnerChange.

* gdk/x11/gdkevents-x11.c (gdk_event_translate): Translate
XFixesSelectionNotify events into GdkEventOwnerChange events.

* gdk/gdkdisplay.h:
* gdk/x11/gdkdisplay-x11.c (gdk_display_supports_selection_notification):
(gdk_display_request_selection_notification): New api
to support selection ownership notification.

* gtk/gtkclipboard.h:
* gtk/gtkclipboard.c (_gtk_clipboard_handle_event): New private
api to handle owner change events.
(clipboard_peek): Refactored out the body of
gtk_clipboard_get_for_display() for use in _gtk_clipboard_handle_event().

* gtk/gtkmain.c (gtk_main_do_event): Handle GDK_OWNER_CHANGE events
by calling _gtk_clipboard_handle_event().
18 files changed:
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/gdk-pixbuf/tmpl/module_interface.sgml
docs/reference/gdk/gdk-sections.txt
docs/reference/gdk/tmpl/events.sgml
docs/reference/gdk/tmpl/gdkdisplay.sgml
docs/reference/gtk/tmpl/gtkenums.sgml
gdk/gdkdisplay.h
gdk/gdkevents.h
gdk/x11/gdkdisplay-x11.c
gdk/x11/gdkdisplay-x11.h
gdk/x11/gdkevents-x11.c
gtk/gtkclipboard.c
gtk/gtkclipboard.h
gtk/gtkmain.c